Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 10 - Group Objects / Group Objects Reference
Group Objects Routines / Managing Groups


Q3Group_CountObjectsOfType

You can use the Q3Group_CountObjectsOfType function to determine how many objects of a particular type a group contains.

TQ3Status Q3Group_CountObjectsOfType (
TQ3GroupObject group, 
TQ3ObjectType isType, 
unsigned long *nObjects);
group
A group.
isType
An object type.
nObjects
On exit, a pointer to the number of objects in the specified group that have the specified type.
DESCRIPTION
The Q3Group_CountObjectsOfType function returns, in the nObjects parameter, the number of objects contained in the group specified by the group parameter that have the object type specified by the isType parameter. The object type can be either a parent class (for example, kQ3SharedType_Shape) or a leaf class (for example, EcGeometryType_Box).

ERRORS
kQ3ErrorInvalidObject
kQ3ErrorNULLParameter


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996